package com.bea.ftd.common.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import com.bea.ftd.common.entity.MsgInConf;

@Repository
public interface MsgInConfRepo extends JpaRepository<MsgInConf,Long> {

    List<MsgInConf> findAllByApiId(String apiId);
    
    @Modifying
    @Query("delete from MsgInConf mis where mis.apiId = ?1")
	void deleteByApiId(String apiId);
}